﻿using Entity;
using System.Collections.Generic;
using Utils;

namespace DataBaseConnect.App
{
    public interface IRoleAppService
    {
        /// <summary>
        /// 获取全部角色&&查询
        /// </summary>
        /// <param name="RoleName">角色名称</param>
        /// <returns></returns>
        List<Role> GetRoleList(string RoleName);

        /// <summary>
        /// 获取用户角色
        /// </summary>
        /// <param name="UserId">用户id</param>
        /// <returns></returns>
        UserRole GetUserRole(int UserId);

        /// <summary>
        /// 新增角色信息
        /// </summary>
        /// <param name="Input">角色信息实体</param>
        /// <returns></returns>
        ReceiveStatus AddRoleMsg(Role Input);

        /// <summary>
        /// 设置用户角色
        /// </summary>
        /// <param name="Input">用户角色实体</param>
        /// <returns></returns>
        ReceiveStatus SetRole(UserRole Input);

        /// <summary>
        /// 编辑角色信息
        /// </summary>
        /// <param name="Input">角色信息实体</param>
        /// <returns></returns>
        ReceiveStatus EditRoleMsg(Role Input);

        /// <summary>
        /// 删除角色信息
        /// </summary>
        /// <param name="RoleId">角色id</param>
        /// <returns></returns>
        ReceiveStatus DelRoleMsg(int RoleId);

        /// <summary>
        /// 根据主键获取角色
        /// </summary>
        /// <param name="RoleId">主键id </param>
        /// <returns></returns>
        Role GetRoleFirst(int RoleId);
    }
}
